<template>
	<div class="container">
		<!-- <navigationBar title="消息详情"></navigationBar> -->
		<div class="content">
			<div class="title" >
				{{ netData.title }}
			</div>
			<div class="content-1">
				<rich-text :nodes="$utils.formatRichText(netData.content)"></rich-text>
			</div>
		</div>
		<div v-if="netData.type == 2">
			<div class="request">
				<div class="user-info">
					<div class="left">
						<image class="user-img" src="" mode=""></image>
						<span class="user-name">{{ netData.userName }}<image :src="netData.avatarPath" mode="aspectFill"></image></span>
					</div>
					<image class="right" src="/static/notice/arrowhead.png" mode=""></image>
				</div>
				<div class="textarea-wrap">
					<textarea maxlength="9999" v-model="requestText" placeholder-style="color: #97989A;padding:0;font-size:28rpx" placeholder="输入打招呼内容…" />
					<!-- <div class="limit">{{requestText.length}}/100</div> -->
				</div>
			</div>
			<div class="bottom">
				<div class="btn unBtn" @click="denyFollowApply">拒绝</div>
				<div class="btn" @click="agreeFollowApply">同意</div>
			</div>
		</div>
		
		
		<!-- <div class="content2">
			<div class="title">
				{{ netData.title }}
			</div>
			<div class="content-1">
				<rich-text :nodes="$utils.formatRichText(netData.content)"></rich-text>
			</div>
		</div> -->
	</div>
</template>

<script>
import data from '@/js/my/noticeDetail/data.js';
import methods from '@/js/my/noticeDetail/methods.js';
import { mapState } from 'vuex';
import navigationBar from '../../components/navigationBar.vue';
export default {
	data,
	methods,
	onLoad(e) {
		this.id = e.id
		this.getPageData(e.id)
	},
	onShow() {},
	onHide() {},
	components: {
		navigationBar
	},
	computed: {
		...mapState(['navigationBarHeight'])
	},
	filters: {
		fmtDate(value) {
			if (!value) return '';
			let arr = value.split('-')
			return arr[0] + '年' + arr[1] + '月'
		},
		fmtData2(value) {
			if (!value) return '';
			let arr = value.split('.')
			arr = arr[0].split('T')
			let arr1 = arr[0].split('-')
			let arr2 = arr[1].split(':')
			return arr1[0] + '年' + arr1[1] + '月' + arr1[2] + '日 '
		}
	}
};
</script>

<style scoped lang="scss">
@import '~@/style/my/noticeDetail.scss';
</style>
